package cn.ac.iie.di.ban.ycl.cleaner.common;

import cn.ac.iie.di.datadock.rdata.exchange.client.core.REFieldType;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author zmc <zhangmingcheng@iie.ac.cn>
 * @date 2016-11-9 18:17:33
 * @version V1.0
 * @desc   发送数据对象
 */
public class SendObject {

    private final String[] columnNames;
    private final REFieldType[] types;
    private final String docSchemaName;
    private final Map<String, String> userDesc;
    private List<Object[]> datas = new ArrayList<>();

    public SendObject(String[] columnNames,
            REFieldType[] types, String docSchemaName,
            Map<String, String> userDesc, List<Object[]> datas) {
        this.columnNames = columnNames;
        this.types = types;
        this.docSchemaName = docSchemaName;
        this.userDesc = userDesc;
        this.datas = datas;
    }

    public String[] getColumnNames() {
        return columnNames;
    }

    public REFieldType[] getTypes() {
        return types;
    }

    public String getDocSchemaName() {
        return docSchemaName;
    }

    public Map<String, String> getUserDesc() {
        return userDesc;
    }

    public List<Object[]> getDatas() {
        return datas;
    }

}
